import request from '@/utils/request.ts'

export const categoryAdd = (data:any) => {
  return request({
    url: '/api/category/add',
    method: 'post',
    data: data
  })
}


export const categoryDeleteById= (id:string) => {
  return request({
    url: `/api/category/delete/${id}`,
    method: 'post',
  })
}
